package com.learn.zzy.data;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.io.Serializable;
import java.time.ZonedDateTime;

@Entity
@Table(name = "main_job")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MainJob extends AbstractAuditingEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "business_id")
    private Long businessId;

    @Column(name = "start_time")
    private ZonedDateTime startTime;

    @Column(name = "status")
    private Integer status;

    @Column(name = "out_time")
    private Integer outTime;

    @Column(name = "child_num")
    private Integer childNum;

    @Column(name = "complete_num")
    private Integer completeNum;

}
